package com.lib.entity;

import java.sql.Date;

public class Record {

    private int id;
    private int memberId;
    private int bookId;
    private String rentDate;
    private String backDate;
    private double deposit;
    private int userId;
    private String isbn;

    //外键
    private Member member;
    private Book book;

    public Record() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getMemberId() {
        return memberId;
    }

    public void setMemberId(int memberId) {
        this.memberId = memberId;
    }

    public int getBookId() {
        return bookId;
    }

    public void setBookId(int bookId) {
        this.bookId = bookId;
    }

    public String getRentDate() {
        return rentDate;
    }

    public void setRentDate(String rentDate) {
        this.rentDate = rentDate;
    }

    public String getBackDate() {
        return backDate;
    }

    public void setBackDate(String backDate) {
        this.backDate = backDate;
    }

    public double getDeposit() {
        return deposit;
    }

    public void setDeposit(double deposit) {
        this.deposit = deposit;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getIsbn() {
        return isbn;
    }

    public void setIsbn(String isbn) {
        this.isbn = isbn;
    }

    public Member getMember() {
        return member;
    }

    public void setMember(Member member) {
        this.member = member;
    }

    public Book getBook() {
        return book;
    }

    public void setBook(Book book) {
        this.book = book;
    }

    public Record(int id, int memberId, int bookId, String rentDate, String backDate, double deposit, int userId, String isbn, Member member, Book book) {
        this.id = id;
        this.memberId = memberId;
        this.bookId = bookId;
        this.rentDate = rentDate;
        this.backDate = backDate;
        this.deposit = deposit;
        this.userId = userId;
        this.isbn = isbn;
        this.member = member;
        this.book = book;
    }
}
